<!DOCTYPE html>
<html lang="en" style='height:100%;'>
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>搜索结果页面</title>
  <script src="https://cdn.jsdelivr.net/npm/babel-polyfill/dist/polyfill.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/jquery"></script>
  <script src="__PUBLIC__/script/common.js" common-data-1="{:U('Mix/dest')}"></script>
  <script src="__PUBLIC__/script/jquery-weui/dist/lib/fastclick.js"></script>
  <script src="__PUBLIC__/script/jquery-weui/dist/js/jquery-weui.min.js"></script>
  <script src="__PUBLIC__/script/jquery-weui/dist/js/city-picker.min.js"></script>
  <link rel="stylesheet" href="__PUBLIC__/script/jquery-weui/dist/lib/weui.min.css">
  <link rel="stylesheet" href="__PUBLIC__/script/jquery-weui/dist/css/jquery-weui.min.css">
  <link rel="stylesheet" href="__PUBLIC__/styles/base.css">
  <link rel="stylesheet" href="__PUBLIC__/styles/new_pingu.css?1.0.0">
  <link rel="stylesheet" href="__PUBLIC__/styles/last_pingu.css">
  <link rel="stylesheet" href="__PUBLIC__/styles/panel_search.css?v=1.0.0">
  <link rel="stylesheet" href="__PUBLIC__/styles/font/iconfont.css">
  <link rel="stylesheet" href="__PUBLIC__/styles/pro_detail_page.css?v=1.0.0">
</head>
<body style='height:100%;overflow:hidden;'>
  <div class="hidden_form">
    <!-- 我要推荐 -->
    <input type="hidden" name="添加推荐" id='addTJURL' value="{:U('Tj/add_tj')}">
    <input type="hidden" name="更新推荐" id='modTJURL' value="{:U('Tj/save_tj')}">
    <!-- 总表单 -->
    <form autocomplete="off" action="__PUBLIC__/test_post" method="post" id = 'hidden_form_all'></form>
    <!-- 客户条件表单 -->
    <form autocomplete="off" action="{:U('WebUser/last_product')}" method="post" id = 'hidden_form_kehu'></form>
    <!-- 按揭要求 -->
    <form autocomplete="off" action="{:U('WebUser/last_product')}" method="post" id = 'hidden_form_anjie'></form>
    <!-- 征信 -->
    <form autocomplete="off" action="{:U('WebUser/last_product')}" method="post" id = 'hidden_form_shaixuan'></form>
    <!-- 添加聊天人员 -->
    <input type="hidden" name="添加聊天人员" id='add_qudao_to_chat_room' value=''>
    <!-- 排序 -->
    <input type="hidden" name="排序" id='order_query' value="{:U('WebUser/last_product')}">
    <!-- 验证渠道是否在本聊天室 -->
    <input type="hidden" name="验证是否有人" id='chat_ajax_cue' value="{:U('chat/ajax_cue')}">
    <!-- 聊天室id -->
    <input type="hidden" name="聊天室id" id='chat_person_id' value="{$Think.session.chat.chat_id}">
    <!-- 添加渠道 -->
    <input type="hidden" name="添加人员" id='chat_add_chat_group' value="{:U('chat/add_chat_group')}">
    <!-- 查看产品详情 -->
    <input type="hidden" name="产品详情" id='pro_detail_page' value="{:U('WebUser/pro_detail_page')}">
    <!-- 检查是否在聊天 -->
    <input type="hidden" name="产品详情" id='ajax_jud' value="{:U('Chat/ajax_jud')}">
    <!-- 用户类型 -->
    <input type="hidden" name="用户是否是按揭员" id='is_anjie' value="{$Think.session.user.web_type}">
  </div>
  <div class="all_container" style='height:100%;overflow:auto;'>
    <nav>
      <div class="fixed_ele weui-flex flex_nav">
        <div class="weui-flex__item filter_up">利息<i class="iconfont" id='lixi_sort'>&#xe6a5;</i></div>
        <div class="weui-flex__item filter_down">额度<i class="iconfont" id='edu_sort'>&#xe6a6;</i></div>
        <div class="weui-flex__item open-popup" id="kehu_picker" data-target="#kehu_popup">客户条件<i class="iconfont">&#xe6a7;</i></div>
        <div class="weui-flex__item open-popup" id="anjie_picker" data-target="#anjie_popup">按揭要求<i class="iconfont">&#xe6a7;</i></div>
        <div class="weui-flex__item open-popup" id="zhengxin_picker" data-target="#zhengxin_popup">征信<i class="iconfont">&#xe6a7;</i></div>
      </div>
    </nav>
    <!-- 主要内容 -->
    <!-- 用户点击过的tag -->
    <div id="rewriteTag_container" style="
      background-color: #fff;
      margin-top: 1rem;
      padding-top: 1.17647059em;
      padding-top: 0.67647059em;
      display:none;
    ">
      <div class="tag_title weui_cell" style="
        line-height: 2rem;
        height: 1.6rem;
        text-indent: 4px;
      ">点击可清除对应条件重新筛选</div>
    </div>
    <!-- 一个产品一个pro_card -->
    <volist name='search' id='vo'>
    <div class="weui-cells pro_card">
      <div class="weui-cell clickDetail">
          <if condition='$Think.session.user.web_type eq 1'>
            <div class="weui-flex__item pro_uid"  p-id='{$vo.id}'  x-id='{$vo.id|fun_nick_name}'>{$vo.id|re_letter_name}</div>
          <else/>
            <div class="weui-flex__item pro_uid" inori-data='{$vo.id}' p-id='{$vo.id}' x-id='{$vo.id|fun_nick_name}'></div>
          </if>
      </div>
      <div class="weui-cell pro_title clickDetail">
        <div class="weui-flex__item pro_edu">{$vo.my_lx_data.min_ed}万~{$vo.my_lx_data.max_ed}万</div>
        <div class="weui-flex__item pro_lixi">{$vo.my_lx_data.min_lx}%~{$vo.my_lx_data.max_lx}% <span>({$vo.my_lx_data.repayments})</span></div>
        <div class="weui-flex__item pro_fenqi">{$vo.my_lx_data.installment_fq}期</div>
      </div>
      <div class="weui-cell pro_tag">
        <div class="tag weui-flex__item clickDetail">{$vo.dtypename|qudao_type}</div>
        <div class="tag weui-flex__item clickDetail"><volist name='vo.cp_temp' id='val'>{$val.name}</volist></div>

        <if condition='$vo.diy_state eq 1'>
          <div class="ad ad_main weui-flex__item clickDetail">评估令推荐</div>
        </if>
        <if condition='$Think.session.user.web_type eq 1'>
            <div class="ad ad_alt weui-flex__item open-popup tj_btn" data-target="#modify_chanpin_popup" onclick="AddAnTuijian(this, event, `{$vo.id}`)" id='tj_{$vo.id}' init-data='{$vo.id|get_ajtj}'></div>
        <else/>
          <div class="ad ad_alt weui-flex__item clickDetail"></div>
        </if>
      </div>
      <div class="weui-cell pro_adv needsclick">
        <div class="weui-flex__item clickDetail">{$vo.letterzhengxin}</div>
        <div class="weui-flex__item clickDetail">{$vo.my_lx_data.fangkuan_time}天放款</div>
        <div class="weui-flex__item clickDetail">手续费{$vo.my_lx_data.handling}%</div>
        <div class="weui-flex__item btn"><label for = "uidAA{$vo.id}" class="weui-btn weui-btn_mini weui-btn_default needsclick label_click">找渠道咨询</label></div>
      </div>
      <div class="weui-cell pro_qudao">
        <input type="radio" name='不提交的按钮，指示折叠用' form='not_submit' id='uidAA{$vo.id}' class="chanpin_type_hidden_checkbox">
        <div class="weui-cells pro_qudao_wrap pro_qudao_wrap_1">
          <volist name='vo.web_user_all' id='web_user_list' key='web_key'>
          <div class="pro_qudao_title weui-flex">
            <div class="location weui-flex__item">{$web_user_list.0.web_area_id|re_region_address}</div>
            <div class="time_avg weui-flex__item">平均回复时间</div>
            <div class="icon_desc weui-flex__item" style='visibility:hidden;flex-grow:1;height:0;max-height:0;'>
              <div class="common_qudao weui-flex__item"><span>共有渠道</span></div>
              <div class="main_qudao weui-flex__item"><span>评估令渠道</span></div>
              <div class="alt_qudao weui-flex__item"><span>公司渠道</span></div>
            </div>
          </div>
            <div class="sub_card_qudao">
              <volist name='web_user_list' id='web_user'>
              <div class="sub_card_qudao_item weui-flex">
                <div class="name common_qudao_name weui-flex__item" qudao-type='common_qudao'>{$web_user.web_name}</div>
                <div class="time_avg weui-flex__item">{$web_user.web_id|re_avg_time}</div>
                <div class="contact_button weui-flex__item" goods-id='{$vo.id}' qudao-id='{$web_user.web_id}' id='qudao_person_{$web_user.web_id}' onclick='AddPersonToRoom(this, event)'>跟他联系</div>
              </div>
              </volist>
            </div>
          </volist>
        </div>
      </div>
    </div>
    </volist>


    <!-- <div style="height:6rem;width:100%;"></div> -->
    <div class="weui-loadmore weui-loadmore_line">
      <!-- 跟随body背景色 -->
      <span class="weui-loadmore__tips" style='background-color:#eaeff5;'>我是有底线的</span>
    </div>
    <!-- <div style="height:3rem;width:100%;"></div> -->
    <!-- 弹窗 -->
    <div id="kehu_popup" class="weui-popup__container">
      <div class="weui-popup__overlay"></div>
      <div class="weui-popup__modal">
        <div class="message_box">
          <volist name='biaoqian_data' id='vo'>
          <div class="weui_cells">
            <div class="tag_title weui_cell" inori-title-data='{$key|re_biaoqian_name}'></div>

            <div class="tag_wrap weui_cell">
              <volist name='vo' id='vo_data'>
              <div class="tag_container" f-display = 'none'>
                <input form='hidden_form_kehu' value='{$vo_data.id}' type="checkbox" name="chanpin_type_{$key}_{$vo_data.id}" id="chanpin_type_{$key}_{$vo_data.id}" class="check_tag">
                <label for="chanpin_type_{$key}_{$vo_data.id}" class="label_check_tag needsclick"><span><span>{$vo_data.name}</span></span></label>
              </div>
              </volist>
            </div>
          </div>
          </volist>

          <div class="weui_cells">
            <div class="tag_title weui_cell">禁入行业</div>

            <div class="tag_wrap weui_cell forbin_data">
              <volist name='forbin' id='forbin_data'>
              <div class="tag_container" f-display = 'flex'>
                <input form='hidden_form_kehu' value='{$forbin_data}' type="checkbox" name="forbade" id="chanpin_type_{$key}_{$forbin_data}" class="check_tag">
                <label for="chanpin_type_{$key}_{$forbin_data}" class="label_check_tag needsclick"><span><span>{$forbin_data}</span></span></label>
              </div>
              </volist>
            </div>
          </div>
          <div class="button_padding">
            <div class="weui-btn weui-btn_primary" onclick="postThisSubPage(this, 6, 'hidden_form_kehu')">确定</div>
            <div class="weui-btn weui-btn_warn" onclick="resetThis(this)">重置本页</div>
            <div class="weui-btn weui-btn_default close-popup">关闭</div>
          </div>
        </div>
      </div>
    </div>
    <div id="anjie_popup" class="weui-popup__container">
      <div class="weui-popup__overlay"></div>
      <div class="weui-popup__modal">
        <div class="message_box">

          <!-- 开关选项 -->
          <div class="weui-cells weui-cells_form">
            <div class="weui-cell weui-cell_switch">
              <div class="weui-cell__bd">只看不用考察的</div>
              <div class="weui-cell__ft">
                <input form='hidden_form_anjie' class="weui-switch" type="checkbox" name="inspection_type" value="null">
              </div>
            </div>
            <div class="weui-cell weui-cell_switch">
              <div class="weui-cell__bd">只看白户能做的</div>
              <div class="weui-cell__ft">
                <input form='hidden_form_anjie' class="weui-switch" type="checkbox" name="xinyongshenf" value="接受白户">
              </div>
            </div>
            <div class="weui-cell weui-cell_switch">
              <div class="weui-cell__bd">只看无手续费的</div>
              <div class="weui-cell__ft">
                <input form='hidden_form_anjie' class="weui-switch" type="checkbox" name="handling" value="0">
              </div>
            </div>
            <if condition='$Think.session.user.web_type eq 1'>
              <div class="weui-cell weui-cell_switch">
                <div class="weui-cell__bd">只看有返点的</div>
                <div class="weui-cell__ft">
                  <input form='hidden_form_anjie' class="weui-switch" type="checkbox" name="return" value="1">
                </div>
              </div>
            </if>
            <div class="weui-cell weui-cell_switch">
              <div class="weui-cell__bd">只看可代收的</div>
              <div class="weui-cell__ft">
                <input form='hidden_form_anjie' class="weui-switch" type="checkbox" name="collection" value="1">
              </div>
            </div>
          </div>
          <!-- 标签选择 -->
          <div class="weui_cells">
            <!-- 查征信显示 -->
            <div class="tag_title weui_cell">征信查询</div>

            <div class="tag_wrap weui_cell">
              <div class="tag_container">
                <input form='hidden_form_anjie' value='不查征信' type="radio" name="Letterzhengxin" id="kehu_type_1_1" class="check_tag">
                <label for="kehu_type_1_1" class="label_check_tag"><span><span>不查征信</span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='自查征信' type="radio" name="Letterzhengxin" id="kehu_type_1_2" class="check_tag">
                <label for="kehu_type_1_2" class="label_check_tag"><span><span>自查征信 </span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='查人行' type="radio" name="Letterzhengxin" id="kehu_type_1_3" class="check_tag">
                <label for="kehu_type_1_3" class="label_check_tag"><span><span>贷款审批</span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='查鹏元' type="radio" name="Letterzhengxin" id="kehu_type_1_4" class="check_tag">
                <label for="kehu_type_1_4" class="label_check_tag"><span><span>查鹏元</span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='信用卡审批' type="radio" name="Letterzhengxin" id="kehu_type_1_5" class="check_tag">
                <label for="kehu_type_1_5" class="label_check_tag"><span><span>信用卡审批</span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='保前审批' type="radio" name="Letterzhengxin" id="kehu_type_1_6" class="check_tag">
                <label for="kehu_type_1_6" class="label_check_tag"><span><span>保前审批</span></span></label>
              </div>
            </div>
            <!-- 上征信显示 -->
            <div class="tag_title weui_cell">上征信显示</div>

            <div class="tag_wrap weui_cell">
              <div class="tag_container">
                <input form='hidden_form_anjie' value='1' type="radio" name="zhengxin_xianshi" id="kehu_type_2_1" class="check_tag">
                <label for="kehu_type_2_1" class="label_check_tag"><span><span>不上人行征信</span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='2' type="radio" name="zhengxin_xianshi" id="kehu_type_2_2" class="check_tag">
                <label for="kehu_type_2_2" class="label_check_tag"><span><span>上人行征信</span></span></label>
              </div>
            </div>
            <!-- 查流水 -->
            <div class="tag_title weui_cell">查流水</div>

            <div class="tag_wrap weui_cell">
              <div class="tag_container">
                <input form='hidden_form_anjie' value='肯定不查' type="radio" name="liushui" id="kehu_type_3_1" class="check_tag">
                <label for="kehu_type_3_1" class="label_check_tag"><span><span>不查流水</span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='抽查' type="radio" name="liushui" id="kehu_type_3_2" class="check_tag">
                <label for="kehu_type_3_2" class="label_check_tag"><span><span>抽查流水</span></span></label>
              </div>
            </div>
            <!-- 查民间 -->
            <div class="tag_title weui_cell">查民间</div>

            <div class="tag_wrap weui_cell">
              <div class="tag_container">
                <input form='hidden_form_anjie' value='肯定不查' type="radio" name="folk_type" id="kehu_type_13_1" class="check_tag">
                <label for="kehu_type_13_1" class="label_check_tag"><span><span>不查民间</span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='抽查' type="radio" name="folk_type" id="kehu_type_13_2" class="check_tag">
                <label for="kehu_type_13_2" class="label_check_tag"><span><span>查民间</span></span></label>
              </div>
            </div>
            <!-- 查同盾 -->
            <div class="tag_title weui_cell">查同盾</div>

            <div class="tag_wrap weui_cell">
              <div class="tag_container">
                <input form='hidden_form_anjie' value='肯定不查' type="radio" name="shield_type" id="kehu_type_4_1" class="check_tag">
                <label for="kehu_type_4_1" class="label_check_tag"><span><span>不查同盾</span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='抽查' type="radio" name="shield_type" id="kehu_type_4_2" class="check_tag">
                <label for="kehu_type_4_2" class="label_check_tag"><span><span>查同盾</span></span></label>
              </div>
            </div>
            <!-- 查大数据 -->
            <div class="tag_title weui_cell">查大数据</div>

            <div class="tag_wrap weui_cell">
              <div class="tag_container">
                <input form='hidden_form_anjie' value='肯定不查' type="radio" name="data_type" id="kehu_type_5_1" class="check_tag">
                <label for="kehu_type_5_1" class="label_check_tag"><span><span>不查大数据</span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='抽查' type="radio" name="data_type" id="kehu_type_5_2" class="check_tag">
                <label for="kehu_type_5_2" class="label_check_tag"><span><span>查大数据</span></span></label>
              </div>
            </div>
            <!-- 放款方式 -->
            <div class="tag_title weui_cell">放款方式</div>

            <div class="tag_wrap weui_cell">
              <div class="tag_container">
                <input form='hidden_form_anjie' value='现金放款' type="radio" name="Lendingfangshi" id="kehu_type_12_1" class="check_tag">
                <label for="kehu_type_12_1" class="label_check_tag"><span><span>现金放款</span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='信用卡方式' type="radio" name="Lendingfangshi" id="kehu_type_12_2" class="check_tag">
                <label for="kehu_type_12_2" class="label_check_tag"><span><span>信用卡方式</span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='贷贷卡方式' type="radio" name="Lendingfangshi" id="kehu_type_12_3" class="check_tag">
                <label for="kehu_type_12_3" class="label_check_tag"><span><span>贷贷卡方式</span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='消费卡方式' type="radio" name="Lendingfangshi" id="kehu_type_12_4" class="check_tag">
                <label for="kehu_type_12_4" class="label_check_tag"><span><span>消费卡方式</span></span></label>
              </div>
            </div>
            <!-- 电核 -->
            <div class="tag_title weui_cell">电核</div>

            <div class="tag_wrap weui_cell">
              <div class="tag_container">
                <input form='hidden_form_anjie' value='不电核单位' type="radio" name="unit_type" id="kehu_type_6_1" class="check_tag">
                <label for="kehu_type_6_1" class="label_check_tag"><span><span>不电核<span>单位</span></span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='抽样电核' type="radio" name="unit_type" id="kehu_type_6_2" class="check_tag">
                <label for="kehu_type_6_2" class="label_check_tag"><span><span>电核<span>单位</span></span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='可以沟通' type="radio" name="unit_type" id="kehu_type_6_3" class="check_tag">
                <label for="kehu_type_6_3" class="label_check_tag"><span><span>电核<span>单位</span>可沟通</span></span></label>
              </div>
            </div>
            <div class="tag_wrap weui_cell">
              <div class="tag_container">
                <input form='hidden_form_anjie' value='不电核配偶' type="radio" name="spouse_type" id="kehu_type_7_1" class="check_tag">
                <label for="kehu_type_7_1" class="label_check_tag"><span><span>不电核<span>配偶</span></span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='抽样电核' type="radio" name="spouse_type" id="kehu_type_7_2" class="check_tag">
                <label for="kehu_type_7_2" class="label_check_tag"><span><span>电核<span>配偶</span></span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='可以沟通' type="radio" name="spouse_type" id="kehu_type_7_3" class="check_tag">
                <label for="kehu_type_7_3" class="label_check_tag"><span><span>电核<span>配偶</span>可沟通</span></span></label>
              </div>
            </div>
            <div class="tag_wrap weui_cell">
              <div class="tag_container">
                <input form='hidden_form_anjie' value='不电核直系' type="radio" name="zhixi_type" id="kehu_type_8_1" class="check_tag">
                <label for="kehu_type_8_1" class="label_check_tag"><span><span>不电核<span>直系</span></span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='抽样电核' type="radio" name="zhixi_type" id="kehu_type_8_2" class="check_tag">
                <label for="kehu_type_8_2" class="label_check_tag"><span><span>电核<span>直系</span></span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='可以沟通' type="radio" name="zhixi_type" id="kehu_type_8_3" class="check_tag">
                <label for="kehu_type_8_3" class="label_check_tag"><span><span>电核<span>直系</span>可沟通</span></span></label>
              </div>
            </div>
            <div class="tag_wrap weui_cell">
              <div class="tag_container">
                <input form='hidden_form_anjie' value='不电核亲属' type="radio" name="relatives_type" id="kehu_type_9_1" class="check_tag">
                <label for="kehu_type_9_1" class="label_check_tag"><span><span>不电核<span>亲属</span></span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='抽样电核' type="radio" name="relatives_type" id="kehu_type_9_2" class="check_tag">
                <label for="kehu_type_9_2" class="label_check_tag"><span><span>电核<span>亲属</span></span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='可以沟通' type="radio" name="relatives_type" id="kehu_type_9_3" class="check_tag">
                <label for="kehu_type_9_3" class="label_check_tag"><span><span>电核<span>亲属</span>可沟通</span></span></label>
              </div>
            </div>
            <div class="tag_wrap weui_cell">
              <div class="tag_container">
                <input form='hidden_form_anjie' value='不电核同事' type="radio" name="colleagues_type" id="kehu_type_10_1" class="check_tag">
                <label for="kehu_type_10_1" class="label_check_tag"><span><span>不电核<span>同事</span></span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='抽样电核' type="radio" name="colleagues_type" id="kehu_type_10_2" class="check_tag">
                <label for="kehu_type_10_2" class="label_check_tag"><span><span>电核<span>同事</span></span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='可以沟通' type="radio" name="colleagues_type" id="kehu_type_10_3" class="check_tag">
                <label for="kehu_type_10_3" class="label_check_tag"><span><span>电核<span>同事</span>可沟通</span></span></label>
              </div>
            </div>
            <div class="tag_wrap weui_cell">
              <div class="tag_container">
                <input form='hidden_form_anjie' value='不电核朋友' type="radio" name="friend_type" id="kehu_type_11_1" class="check_tag">
                <label for="kehu_type_11_1" class="label_check_tag"><span><span>不电核<span>朋友</span></span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='抽样电核' type="radio" name="friend_type" id="kehu_type_11_2" class="check_tag">
                <label for="kehu_type_11_2" class="label_check_tag"><span><span>电核<span>朋友</span></span></span></label>
              </div>
              <div class="tag_container">
                <input form='hidden_form_anjie' value='可以沟通' type="radio" name="friend_type" id="kehu_type_11_3" class="check_tag">
                <label for="kehu_type_11_3" class="label_check_tag"><span><span>电核<span>朋友</span>可沟通</span></span></label>
              </div>
            </div>
          </div>

          <div class="button_padding">
            <div class="weui-btn weui-btn_primary" onclick="postThisSubPage (this, 7, 'hidden_form_anjie')">确定</div>
            <div class="weui-btn weui-btn_warn" onclick="resetThis(this)">重置本页</div>
            <div class="weui-btn weui-btn_default close-popup">关闭</div>
          </div>
        </div>
      </div>
    </div>
    <div id="zhengxin_popup" class="weui-popup__container">
      <div class="weui-popup__overlay"></div>
      <div class="weui-popup__modal">
        <div class="message_box">
          <div class="weui_cells zhengxin_block">
            <div class="tag_title weui_cell">查询次数</div>

            <div class="tag_wrap weui_cell" style="display:flex;">
              <div style='width:95%;margin-left:auto;margin-right:auto;padding:3px 0;'>包括：贷款申请、信用卡查询、保前审批、个人查询</div>
              <div class="tag_container" style="display:none;">
                <input form='hidden_form_shaixuan' value='贷款申请' type="checkbox" checked name="zhengxin_fliter" id="zhengxin_fliter_1_1" class="check_tag">
                <label for="zhengxin_fliter_1_1" class="label_check_tag"><span><span>贷款申请</span></span></label>
              </div>
              <div class="tag_container" style="display:none;">
                <input form='hidden_form_shaixuan' value='信用卡查询' type="checkbox" checked name="zhengxin_fliter" id="zhengxin_fliter_1_2" class="check_tag">
                <label for="zhengxin_fliter_1_2" class="label_check_tag"><span><span>信用卡查询</span></span></label>
              </div>
              <div class="tag_container" style="display:none;">
                <input form='hidden_form_shaixuan' value='保前审批' type="checkbox" checked name="zhengxin_fliter" id="zhengxin_fliter_1_3" class="check_tag">
                <label for="zhengxin_fliter_1_3" class="label_check_tag"><span><span>保前审批</span></span></label>
              </div>
              <div class="tag_container" style="display:none;">
                <input form='hidden_form_shaixuan' value='个人查询' type="checkbox" checked name="zhengxin_fliter" id="zhengxin_fliter_1_4" class="check_tag">
                <label for="zhengxin_fliter_1_4" class="label_check_tag"><span><span>个人查询</span></span></label>
              </div>
            </div>
            <div class="fliter_line" inori-count='1' imgURL='__PUBLIC__/res/u1490.png'>
              <div class="zhengxin_check_count_cycle_wrap"><input form='hidden_form_shaixuan' type="text" name="zhengxin_check_count_cycle" id="zhengxin_check_count_cycle_1"></div>
              <div class="zhengxin_popup_placeholder">月内查询</div>
              <div class="zhengxin_check_count_time_wrap"><input form='hidden_form_shaixuan' type="text" name="zhengxin_check_count_time" id="zhengxin_check_count_time_1"></div>
              <div class="click_to_add" id="click_to_add_zhengxin">+<img src="__PUBLIC__/res/u1490.png" alt="u1490"></div>
            </div>
          </div>
          <div class="weui_cells yuqi_block">
            <div class="tag_title weui_cell">逾期次数</div>

            <div class="fliter_line" inori-count='1' imgURL='__PUBLIC__/res/u1490.png'>
              <div class="yuqi_check_count_cycle_wrap"><input form='hidden_form_shaixuan' type="text" name="yuqi_check_count_cycle" id="yuqi_check_count_cycle_1"></div>
              <div class="yuqi_check_count_method_wrap">月内有<input form='hidden_form_shaixuan' type="text" name="yuqi_check_count_method" id="yuqi_check_count_method_1" value='累计' style="display:none;" readonly></div>
              <div class="yuqi_check_count_time_wrap"><input form='hidden_form_shaixuan' type="text" name="yuqi_check_count_time" id="yuqi_check_count_time_1"></div>
              <div class="yuqi_check_count_source_wrap"><input form='hidden_form_shaixuan' type="text" name="yuqi_check_count_source" id="yuqi_check_count_source_1"></div>
              <div class="click_to_add" id="click_to_add_yuqi">+<img src="__PUBLIC__/res/u1490.png" alt="u1490"></div>
            </div>
          </div>
        </div>
        <div class="button_padding" style="width:95%;margin:auto;">
          <!-- <div class="placeholder_img">
            <img src="__PUBLIC__/res/placeholder.jpg" alt="">
          </div> -->
          <div style='height:4vh;width:100%;'></div>
          <div class="weui-btn weui-btn_primary" onclick="postThisSubPage (this, 9, 'hidden_form_shaixuan')">确定</div>
          <!-- <div class="weui-btn weui-btn_warn" onclick="resetThis(this)">重置本页</div> -->
          <div class="weui-btn weui-btn_default close-popup">关闭</div>
        </div>
      </div>
    </div>

    <div id="prodetail" class="weui-popup__container">
      <div class="weui-popup__overlay"></div>
      <div class="weui-popup__modal" style='padding-top: 1rem;'>
        网络错误！无法获取详情页面
      </div>
    </div>
  </div>

  <!-- 弹窗の我要推荐 -->
  <div id="modify_chanpin_popup" class="weui-popup__container popup-bottom">
    <div class="weui-popup__overlay"></div>
    <div class="weui-popup__modal">
      <div class="toolbar">
        <div class="toolbar-inner">
          <h1 style="position: absolute;display: block;padding: 0;font-weight: 400;line-height: 2.2rem;text-align: center;white-space: nowrap; font-size: 10px;left: 15px;">推荐理由</h1>
        </div>
      </div>
      <div class="modal-content">
        <div class="textarea_wrap">
          <textarea name="modify_textarea" id="modify_textarea" placeholder="请输入推荐的理由，所有伙伴将会看到您的推荐"></textarea>
        </div>
        <div class="btn_wrap">
          <!-- 不要修改这里的超链接，提交链接书写在页面头部的 input:hidden 区域 -->
          <a href="javascript:;" class="weui-btn weui-btn_plain-primary" style="color: #007cb8;border-color: #007cb8;" onclick="postThisModify(this, event)">确定</a>
          <a href="javascript:;" class="weui-btn weui-btn_plain-default close-popup">取消</a>
        </div>
      </div>
    </div>
  </div>
  <!-- end 弹窗の我要推荐 -->
  <!-- end 弹窗 -->


  </div>
  <script src="__PUBLIC__/script/panel_search.js?v=1.0.8"></script>
  <!-- fastclick -->
  <script>
    $(function() {
      // FastClick.attach($('.flex_nav')[0]);
      $('.close-popup').each((index, item) => {
        $(item).on('click', (evt) => {
          $.closePopup()
        })
      })
      $(`#kehu_picker`).on('touchstart', (evt) => {
        evt.preventDefault()
        const forAttr = $(evt.target).attr('data-target')
        $(`${forAttr}`).popup()
      })
      $(`#anjie_picker`).on('touchstart', (evt) => {
        evt.preventDefault()
        const forAttr = $(evt.target).attr('data-target')
        $(`${forAttr}`).popup()
      })
      $(`#zhengxin_picker`).on('touchstart', (evt) => {
        evt.preventDefault()
        const forAttr = $(evt.target).attr('data-target')
        $(`${forAttr}`).popup()
      })
    });
  </script>
  <script id="features">
    function resetThis (_this) {
      $(_this).closest('.weui-popup__container').find('input:checked').prop('checked', '')
    }
    // 挂上事件，点击的时候跳出产品详情
    $('.clickDetail').each((index, item) => {
      // 只监听冒泡的
      $(item).on('click',(evt)=>{
        evt.preventDefault()
        evt.stopPropagation()
        if (sessionStorage.getItem('clicking') && sessionStorage.getItem('clicking') === 'true') {
          return false
          throw new Error(`防止双击`)
        } else {
          sessionStorage.setItem('clicking', 'true')
        }
        // $(evt.target).closest('.pro_card').off('click')
        // $(evt.target).closest('.pro_card').on('click', notAllowClick)
        // alert($(evt.target).attr('class'))
        const uID = $(evt.target).closest('.pro_card').find('.pro_uid').attr('p-id')
        if(uID === undefined || uID === '') {
          $.toptip(`无法获取uid,详情页面获取失败`, 'error')
          throw new Error(`uid无法获取`)
        }
        const ajaxURL = String($(`#pro_detail_page`).val())
        const ajaxData = {
          g_id: uID
        }
        $.ajax(ajaxURL, {
          method: 'post',
          data: ajaxData,
          beforeSend: () => {
            $.toptip(`正在获取详情`, 'success')
          }
        }).fail((err) => {
          sessionStorage.setItem('clicking', 'false')
          $.toptip(`详情页面获取时发生网络错误，请检查网络`, 'error')
          throw err
        }).done((res) => {
          sessionStorage.setItem('clicking', 'false')
          $.toptip(`服务器已经返回,正在处理。。。`, 400, 'success')
          $(`#prodetail .weui-popup__modal`).empty()
          $(`#prodetail .weui-popup__modal`).append(res)
          // 发送给父页面
          let pro_list = []
          $.each($('.pro_card'), (index, item) => {
            const id = $(item).find(`[p-id]`).attr('p-id')
            if (id && id !== '') {
              pro_list.push(id)
            }
          })
          const pro_list_index = $(evt.target).closest('.pro_card').index()
          window.top.postMessage({
            popup_pro_detail: res,
            pro_list: pro_list,
            pro_list_index: pro_list_index
            }, '*')
          return
        })
      })
    })
  </script>
  <!-- 读取页面状态 -->
  <script>
    $(document).ready(() => {
      $.toptip('加载成功', 'success')
      // const documentHieghtInori = sessionStorage.getItem('documentHeight')
      // $('body').css('height', documentHieghtInori)
      // $('#kehu_popup').height(documentHieghtInori)
      // // $('#kehu_popup').css('height', documentHieghtInori)
      // $.toptip(`${documentHieghtInori}、${$('body').height()}、${$('#kehu_popup .message_box').height()}`, 'success')
      // $('#kehu_popup').popup()
      // setTimeout(() => {$.closePopup()}, 1000)
      let sortValue = []
      let filterTag = []
      try {
        sortValue = JSON.parse(sessionStorage.getItem('lastProduct_sort_arr'))
        filterTag = JSON.parse(sessionStorage.getItem('currentFilter'))
        if (sortValue && sortValue.length === 2) {
          // sortValue[] === 0 ? up : down
          sortValue[0] === 0 ? $('#lixi_sort').text(`\u{E6A5}`) : $('#lixi_sort').text(`\u{E6A6}`)
          sortValue[1] === 0 ? $('#edu_sort').text(`\u{E6A5}`) : $('#edu_sort').text(`\u{E6A6}`)
        }
        let tempName = []
        let tempValue = []
        let tempViewValue = []
        let tagTempl = `<div class="weui_cells"><div class="tag_wrap weui_cell">`
        if (filterTag && filterTag.length && filterTag[0].name) {
          // 有name代表确实是n-v数组了
          // 查找指定序列，只显示其中是可点选的项目
          // 6 是 客户条件
          // 7 是 按揭要求
          // 9 是 征信条件
          // 7 和 9只允许在下边数组中的name出现为tag
          const anjieTag = ['Letterzhengxin', 'zhengxin_xianshi', 'liushui', 'folk_type', 'shield_type', 'data_type', 'Lendingfangshi', 'unit_type', 'spouse_type', 'zhixi_type', 'relatives_type', 'colleagues_type', 'friend_type']
          const zhengxinTag = ['zhengxin_fliter']
          $.each(filterTag, (i, item) => {
            if(/^6\[/.test(item.name)) {
              // 查出对应iput的id => 查出对应label => .text()
              // $(`input[name='revenue']`).attr('id')
              // 对饮input的name
              $.each(item.value.split(','), (index, value) => {
                const inputName = item.name.replace(/6\[/, '').replace(/\]/, '')
                const inputID = $(`input[name='${inputName}'][value='${value}']`).attr('id')
                const displayValue = $(`label[for='${inputID}']`).text()
                tempName.push(item.name)
                tempValue.push(value)
                tempViewValue.push(displayValue)
              })
            }
            if(/^7\[/.test(item.name)) {
              if(anjieTag.indexOf(item.name.replace(/^7\[/, '').replace(/\]$/, '')) > -1) {
                if (/zhengxin_xianshi/.test(item.name)) {
                  tempName.push(item.name)
                  tempValue.push(item.value)
                  tempViewValue.push(item.value === '1' ? '不上征信显示' : '上征信显示')
                } else {
                  tempName.push(item.name)
                  tempValue.push(item.value)
                  tempViewValue.push(item.value)
                }
              }
            }
            if(/^9\[/.test(item.name)) {
              return ;
              // if(anjieTag.indexOf(item.name.replace(/^9\[.+\d\]/, '').replace(/\]$/, '')) > -1) {
              // 因为是重复条件，固定只要第一个
              if(/\[0\]zhengxin_check_count_method/.test(item.name)) {
                $.each(item.value.split(','), (i, value) => {
                  tempName.push(item.name)
                  tempValue.push(value)
                  tempViewValue.push(value)
                })
              }
            }
          })
          // n-v-d数组均组好，产生tag模板
          if(tempName.length === 0) {
            throw new Error('筛选条件为空，不需要显示tag')
          }
          $.each(tempName, (index, item) => {
            tagTempl += `
              <div class="tag_container">
                <input form='not_submit' value='${tempValue[index]}' type="checkbox" name="${tempName[index]}" class="check_tag" id='rewrite_tag_${index}'>
                <label for="rewrite_tag_${index}" class="label_check_tag" onclick='removeThisNSearchAgain(this, event)'><span><span style='word-break: keep-all;white-space: pre;'>${tempViewValue[index]}</span></span></label>
              </div>
            `.trim()
          })
          tagTempl += `</div></div>`
          $(`#rewriteTag_container`).append(tagTempl)
          $(`#rewriteTag_container`).css('display', 'block')
        }
      } catch (err) {
        console.log(err)
      }
      // 向父页面发送搜索状态
      const searchCount = `<?php echo count($search)?>`
      window.top.postMessage({searchCount: searchCount}, '*')
    })
    function removeThisNSearchAgain (_this, evt) {
      let filterTag = JSON.parse(sessionStorage.getItem('currentFilter'))
      const removeInputID = $(evt.target).closest('label').attr('for')
      const removeName = $(`#${removeInputID}`).attr('name')
      const removeValue = $(`#${removeInputID}`).attr('value')
      let delSuccessFlag = false
      let ReplaceItem = false
      $.each(filterTag, (index, item) => {
        if(item.name === removeName) {
          // 全部按逗号隔开处理
          let tempValueArray = item.value.split(',')
          if (tempValueArray.indexOf(removeValue) > -1) {
            tempValueArray.splice(tempValueArray.indexOf(removeValue),1)
            $.toptip('已找到对应条件，正在删除。。。', 'success')
            delSuccessFlag = true
            if (tempValueArray.length > 0) {
              ReplaceItem = {
                index: index,
                tempValueArray: tempValueArray
              }
            } else {
              ReplaceItem = {
                index: index,
                tempValueArray: null
              }
            }
          } else {
            $.toptip('未找到对应条件，正在停止。。。', 'error')
            // 变回没有点击的状态
            $(evt.target).click()
            throw new Error('不存在对应条件，无法删除并重组条件搜索', 'error')
          }
        }
      })
      if (!delSuccessFlag) {
        $.toptip('未找到对应条件，正在停止。。。', 'error')
        // 变回没有点击的状态
        $(evt.target).click()
        throw new Error('不存在对应条件，无法删除并重组条件搜索')
      } else {
        if (ReplaceItem.tempValueArray === null) filterTag.splice(ReplaceItem.index, 1)
        else filterTag[ReplaceItem.index].value = ReplaceItem.tempValueArray.join(',')
        // 删除页面上的标签
        // 提示用户正在准备跳转
        $.toptip('正在重组条件。。。', 'success')
        let formAction = $(`#order_query`).val()
        let tempForm = `<form autocomplete="off" method='post' action='${formAction}' id='tempGenForm'></form>`
        let tempInput = ``
        console.log(filterTag)
        $.each(filterTag, (index, item) => {
          tempInput += `<input type='hidden' name='${item.name}' value='${item.value}'>`
        })
        tempForm.replace('></form>', `>${tempInput}</form>`)
        // $('#tempGenForm').remove()
        // $('body').append(tempForm)
        // sessionStorage.setItem('currentFilter', JSON.stringify($('#tempGenForm').serializeArray()))
        // $('#tempGenForm').submit()
        window.top.postMessage({formData: tempForm.replace('></form>', `>${tempInput}</form>`)}, '*')
      }
    }
  </script>
  <!-- 产品推荐 -->
  <script>
    function AddAnTuijian (_this, evt, g_id) {
      const long_g_id = $(_this).closest('.pro_card').find('.pro_uid').text()
      $(`#modify_chanpin_popup .toolbar-inner h1`).text(long_g_id)
      $(`#modify_chanpin_popup .toolbar-inner h1`).attr('g-id', g_id)
      // 接着弹窗弹出
    }
    // AddAnTuijian(this, event, `{ $ vo.id}`)
    function postThisModify (_this, evt) {
      const parentEle = $(evt.target).closest('.modal-content')
      const ajaxAddURL = String($('#addTJURL').val())
      const ajaxModURL = String($('#modTJURL').val())
      const g_id = $(evt.target).closest('#modify_chanpin_popup').find('h1').attr('g-id')
      const reason = String(parentEle.find('textarea').val())
      let ajaxAddData = {
        tj_g_id: g_id,
        tj_reason: reason,
      }
      let ajaxModData = {
        tj_id: ``,
        tj_g_id: g_id,
        tj_reason: reason,
      }
      // 永远都是add
      new Promise((resolve, reject) => {
        $.ajax(ajaxAddURL, {
          method: 'post',
          data: ajaxAddData,
          beforeSend: () => {
            $.toptip(`正在提交数据`, 'success')
          }
        }).fail((err) => {
          $.toptip(`提交数据失败！请检查网络后重试`, 'error')
          reject( err )
        }).done((res) => {
          if(res.code && String(res.code) !== '1') {
            $.toptip(`提交数据失败！服务器返回异常: ${res.message}`, 'error')
            reject( new Error(`${JSON.stringify(res)}`) )
          } else if(!res.code) {
            $.toptip(`提交数据失败！服务器返回异常: ${JSON.stringify(res)}`, 'error')
            reject( new Error(`${JSON.stringify(res)}`) )
          } else {
            $.toptip(`提交数据成功！`, 'success')
            // 关闭弹窗
            $('.close-popup').click()
            resolve(res.data)
          }
        })
      }).then((res) => {
        return new Promise ((resolve, reject) => {
          ajaxModData.tj_id = res
          $.ajax(ajaxModURL, {
            method: 'post',
            data: ajaxModData
          }).fail((err) => {
            $.toptip(`提交数据失败！请检查网络后重试`, 'error')
            reject( err )
          }).done((res) => {
            if(res.code && String(res.code) !== '1') {
              $.toptip(`提交数据失败！服务器返回异常: ${res.message}`, 'error')
              reject( new Error(`${JSON.stringify(res)}`) )
            } else if(!res.code) {
              $.toptip(`提交数据失败！服务器返回异常: ${JSON.stringify(res)}`, 'error')
              reject( new Error(`${JSON.stringify(res)}`) )
            } else {
              $.toptip(`提交数据成功！`, 'success')
              // 关闭弹窗
              $('.close-popup').click()
              resolve(res)
            }
          })
        })
      }).then((res) => {
        console.clear()
        console.log(`推荐数据提交成功！`)
        console.log(res)
        location.reload(true)
      }).catch((err) => {
        console.clear()
        console.log('推荐数据提交失败')
        console.log(err)
      })
    }
    function delTj (id) {
      $.ajax(`{:U('Tj/del_tj')}`, {
        type: 'post',
        data: {
          tj_id: id
        }
      }).done((res) => {
        if(res.code && `${res.code}` === '1')  {
          console.log('删除成功')
        } else {
          console.log('删除失败')
        }
      }).fail((err) => {
        console.log(err)
      })
    }
  </script>
  <!-- 历史记录进来的时候不允许筛选 -->
  <script>
    $(document).ready(() => {
      if (!sessionStorage.getItem('newPingu')) {
        // 不允许重新搜索

        // 艹 屏蔽了搜索栏不就好了，我搞什么飞机
        $('nav').empty()

      }
      // 推荐按钮
      $.each($('.tj_btn'), (index, item) => {
        const status = $(item).attr('init-data')
        if (status && status === '0') {
          $(item).text('我要推荐')
        } else {
          const itemClass = $(item).attr('class')
          const itemID = $(item).attr('id')
          const itemInitData = $(item).attr('init-data')
          $(item).replaceWith(`<div class="${itemClass}" id='${itemID}' init-data='${itemInitData}'>${itemInitData}</div>`)
        }
      })
      // 搜索筛选处理
      const fliterValueArray = `{$biaoqian_temp}`
      try {
        const array = JSON.parse(fliterValueArray)
        if (array.length < 1) throw new Error('数组异常')
        $.each(array, (topIndex, topItem) => {
          $.each(array[topIndex], (index, item) => {
            if (item === null || item === 'null' || index === 'jinjian') return
            const subArray = item.split(',').filter(item => (item !== ',' && item !== ''))
            $.each(subArray, (subIndex, subItem) => {
              $(`[name='${index}'][value='${subItem}']`).closest('.tag_container').css('display', 'flex')
              $(`[name='${index}'][value='${subItem}']`).closest('.tag_container').attr('f-display', 'flex')
            })
          })
        })
        $(`#kehu_popup .tag_wrap .tag_container[f-display='none']`).remove()
        $.each($(`#kehu_popup .tag_wrap`), (index, item) => {
          if ($(item).find(`[f-display]`).length === 0) {
            $(item).closest(`.weui_cells`).remove()
          }
        })
        // 移除禁止行业空标签
        $.each($('.forbin_data .tag_container>label>span'), (index, item) => {
          if ($(item).text() === '') $(item).closest('.tag_container').remove()
        })
      } catch (err) {
        console.log(err)
        $.toptip('不需要过滤筛选标签', 'success')
      }
      // 给所有过长标签添加一个下划线
      $.each($('.pro_card .pro_adv .weui-flex__item.clickDetail'), (index, item) => {
        if (Math.abs(item.clientWidth - item.scrollWidth) > 1) {
          $(item).css('border-bottom','1px solid #ddd')
        }
      })
    })
  </script>
  <!-- 接受点击提示 -->
  <script>
    window.addEventListener('message', fromTop, false)
    function fromTop (evt) {
      if (event.data.clickPerson && event.data.clickPerson === 'true') {
        debugger
        if (sessionStorage.getItem('qudaoID') && sessionStorage.getItem('qudaoID') !== 'null') {
          const id = `qudao_person_${sessionStorage.getItem('qudaoID')}`
          // $(`${id}`).click()
          $.toptip(`点击${id}`, 'success')
          sessionStorage.setItem('qudaoID', 'null')
        }
      }
    }
  </script>
</body>
</html>